feat(rsc): react-router cloudflare single worker example#803
Open
feat(rsc): react-router cloudflare single worker example#803
Conversation
d3ec5b9 to
b34c086
Compare
|
@hi-ogawa I wonder if latest RR that supports framework mode can have example like this one too? |
|
I just wanted to mention that I tried this one. Works compiled but not in dev when @clouldfware/vite-plugin is used. It doesn't say an error and just prints <..redacted..> |
Contributor
Author
|
@ivogt Hey, Sorry, I missed the message. To answer the question, no. RR framework plugin needs a change to support a setup like this. You can probably raise a feature request on react router repo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
examples/cf-single-workertoexamples/react-router, namely enableloadModuleDevProxy.entry.ssrto providegenerateHTML, which works on "serializable" valuesgenerateHTML: (url: string, headers: Headers, rscResponse: Response) => Promise<Response>utils/rpc.tsto encode/decodeHeadersandResponsevia custom turbo-stream plugins